
.page-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
}

.page-title i {
    margin-right: 10px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-select, .form-control {
    border-color: #dee2e6;
}

.form-select:focus, .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-big,
.btn-group .btn-big,
button.btn-big,
.table .btn-big,
.btn-group button.btn-big {
    padding: 12px 16px !important;
    font-size: 20px !important;
    min-width: 45px !important;
    min-height: 40px !important;
    line-height: 1.2 !important;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title i {
    margin-right: 8px;
}

.modal-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}


.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

#emptyState {
    color: #6c757d;
}

#emptyState i {
    opacity: 0.5;
}


#loadingSpinner {
    color: #6c757d;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}



@media (max-width: 768px) {
    .course-wrapper {
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .btn-group .btn-big,
    button.btn-big,
    .table .btn-big {
        padding: 12px 16px !important;
        font-size: 20px !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .course-description {
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.25rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .btn-big,
    button.btn-big,
    .table .btn-big {
        padding: 12px 16px !important;
        font-size: 20px !important;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.table tbody tr {
    transition: all 0.2s ease;
}


.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 卡片阴影效果 */
.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.93 1.93 3.53-3.53.94.94L4.16 9.66z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


.home-wrapper {
    padding: 20px;
    background-color: #ffffff;
    min-height: 100vh;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dashboard-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.dashboard-header p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.charts-container {
    max-width: 1400px;
    margin: 0 auto;
}

.chart-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-item {
    flex: 1;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.chart-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chart-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.chart-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
}

.chart-header p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.chart-container {
    height: 400px;
    padding: 20px;
}

.table-container {
    height: 450px;
    overflow-y: auto;
    padding: 0;
}

.table-container .table {
    margin: 0;
}

.table-container .table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 1000;
    display: none;
}

.loading-indicator.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .chart-row {
        flex-direction: column;
    }

    .chart-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .home-wrapper {
        padding: 10px;
    }

    .dashboard-header h2 {
        font-size: 24px;
    }

    .chart-container {
        height: 300px;
        padding: 15px;
    }

    .chart-header h3 {
        font-size: 16px;
    }
}